import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import dfbz.com.model.User;
import org.junit.Test;

public class Demo1 {
    @Test
    public void method1() {
        String json= "{\"name\":\"json\",\"num\":1.025}";
        JSONObject jsonObject = JSONObject.parseObject(json);
        System.out.println(jsonObject.getString("name"));
    }

}
